<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<%@ page import="mysql.*" import = "java.sql.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<center>

<%
	Connection con = MysqlConnect.getConnection();
	System.out.println(request.getParameter("id"));
	boolean loginCheck = Login.login(con, request.getParameter("id"), request.getParameter("pw"), session);
	
	if(loginCheck) {
		response.sendRedirect("./LoginSuccess.jsp");
	} else {
		response.sendRedirect("./LoginFail.jsp");
	}
		
%>
	

<br><hr>


</center>
</body>
</html>